home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Resources / Chat & Communication / Digsby build 37 / digsby_setup.exe / lib / digsby / digsbybuddies.pyo (.txt) < prev    next >
Python Compiled Bytecode  |  2008-10-13  |  740b  |  20 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.5)
  3.  
  4. import jabber
  5. import digsby
  6. from pyxmpp.jid import JID
  7.  
  8. class DigsbyBuddies(jabber.jbuddies):
  9.     
  10.     def __getitem__(self, jid):
  11.         unique = JID(jid).bare()
  12.         
  13.         try:
  14.             return dict.__getitem__(self, unique)
  15.         except KeyError:
  16.             return self.setdefault(unique, digsby.dbuddy(self.protocol, jid))
  17.  
  18.  
  19.  
  20.